<?php
namespace PhpQq\WebQq;
/*****************************************************************************************
 * 微信的一些函数 
 *****************************************************************************************
 */

/**
 * 微信模拟登录
 * @email 397109515@qq.com
 * @author  seven
 */
class WebQqHelper {
    /**
     * 输出
     * @param type $message
     * @param type $br
     */
    static public function echos($message,$br = true)
    {
        switch (true) {
            case stristr(PHP_OS, 'WIN'): $t = eval('return '.mb_convert_encoding(var_export($message,true),'gb2312','utf-8').';');break;
            case stristr(PHP_OS, 'DAR'): $t = eval('return '.mb_convert_encoding(var_export($message,true),'utf-8','auto').';');break;
            case stristr(PHP_OS, 'LINUX'): $t = eval('return '.mb_convert_encoding(var_export($message,true),'utf-8','auto').';');break;
            default : $t = eval('return '.mb_convert_encoding(var_export($message,true),'utf-8','auto').';');
        }
        print_r($t);echo $br?PHP_EOL:'';
    }
    
    
    
    
}
